proc invite {nick handle host chan otbn1} {
  global botnick home 

  if {$otbn1 == ""} {
    putquick "NOTICE $nick :\0034ERROR - Invalid Syntax - Should Be - (/msg) $botnick invite <#channel> <nick>"
    return 0
  } elseif {![botisop $chan]} {
    putquick "NOTICE $nick :\0034ERROR - Bot dosen't have op status (+o) in $chan"
    return 0
  } elseif {[onchan $otbn1 $chan]} {
    putquick "NOTICE $nick :\0034ERROR - $otbn1 is currently on $chan"
    return 0
  } else {
    putlog "!$nick ($host)! invite $chan $otbn1"
    putquick "NOTICE $nick :\0033Successfully Invitied\0034 $otbn1 \0033to\0034 $chan"
    putquick "INVITE $otbn1 :$chan"
    putquick "NOTICE $otbn1 :\002$nick\002 ($host) used me to invite you to $chan"
    putquick "PRIVMSG $home :\002$nick\002 ($host) requested me to invite \002$otbn1\002 to $chan"
    putquick "NOTICE @$chan :\002$nick\002 ($host) requested me to invite \002$otbn1\002 to $chan"
  }
}










